import QtQuick 1.0
import QtWebKit 1.0
import com.nokia.symbian 1.0

PurePage {
    id: realtimePage

    anchors { fill: parent; topMargin: statusBar.height; bottomMargin: toolBar.height }
    signal reloadWeb(string service)

    Flickable {
        id: flickable

        anchors {
            top: parent.top
            bottom: parent.bottom
        }
        width: realtimePage.width; height: realtimePage.height
        contentWidth: Math.max(parent.width,webview.width)
        contentHeight: Math.max(parent.height,webview.height)


    WebView {
        id: webview

        url: "http://www.plurk.com/m/s/?query=coscup"
        preferredWidth: flickable.width
        preferredHeight: flickable.height
        visible: true

    }
    }

    onReloadWeb: {
        if (service == "plurk")
            webview.url = "http://www.plurk.com/m/s/?query=coscup"
        if (service == "twitter")
            webview.url = "http://mobile.twitter.com/searches?q=coscup"
    }
}
